package com.soo.hoo.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.soo.hoo.core.model.BaseEntry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户所属家庭，一个用户只会有一个家庭
 * </p>
 *
 * @author 杨燚
 * @since 2024-04-20
 */
@Getter
@Setter
@TableName("t_sys_user_family")
@Schema(name = "SysUserFamily", description = "用户所属家庭，一个用户只会有一个家庭")
public class SysUserFamily extends BaseEntry {

    @Schema(description = "唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id，对应t_sys_user表id列")
    private Long userId;

    @Schema(description = "用户姓名，户主姓名。注意区别于username")
    private String userName;

    @Schema(description = "家庭Id，该用户自己的家庭码")
    private String familyId;

    @Schema(description = "用户可以查看哪些家庭码所属的礼簿，多个使用英文逗号分割")
    private String familyIds;
}
